package com.until.pagination;

import lombok.Data;

/**
 * 定义分页的参数传递模型
 * @author AdminUser
 */
@Data
public class PaginationRequest {
    /**
     * 定义分页的页数，默认值为1
     */
    private int pageNumber;
    /**
     * 定义页容量，默认值为10
     */
    private int pageSize;

    public PaginationRequest(int pageNumber, int pageSize) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
    }

    public PaginationRequest() {
    }
}
